package com.luyuan.crm.question.service.impl;

import java.util.List;

import org.hibernate.criterion.Order;

import com.luyuan.crm.question.model.QuestionExtendField;
import com.luyuan.crm.question.service.QuestionExtendFieldService;
import com.ruijie.foundation.dao.support.HibernateEntityDao;
import com.ruijie.foundation.query.Page;
import com.ruijie.foundation.query.criteria.CriteriaQueryTemplate;
import com.ruijie.foundation.query.criteria.CriteriaTemplate;

@SuppressWarnings("unchecked")
public class QuestionExtendFieldServiceImpl extends
		HibernateEntityDao<QuestionExtendField> implements
		QuestionExtendFieldService {

	@Override
	public Page pagedQuery(CriteriaTemplate criteria, int pageNo, int pageSize,
			List<Order> orders) {
		CriteriaQueryTemplate cqt = new CriteriaQueryTemplate(
				getSessionFactory());
		return cqt.pagedQuery(criteria, pageNo, pageSize, orders);
	}

}
